package com.sunny.fetch.pojo;

import javax.persistence.*;

@Table(name = "f_stock_company")
public class FStockCompany {
    @Id
    private Long tid;

    /**
     * 股票代码
     */
    @Column(name = "ts_code")
    private String tsCode;

    /**
     * 交易所代码 ，SSE上交所 SZSE深交所
     */
    private String exchange;

    /**
     * 法人代表
     */
    private String chairman;

    /**
     * 总经理
     */
    private String manager;

    /**
     * 董秘
     */
    private String secretary;

    /**
     * 注册资本
     */
    @Column(name = "reg_capital")
    private Float regCapital;

    /**
     * 注册日期
     */
    @Column(name = "setup_date")
    private String setupDate;

    /**
     * 所在省份
     */
    private String province;

    /**
     * 所在城市
     */
    private String city;

    /**
     * 公司介绍
     */
    private String introduction;

    /**
     * 公司主页
     */
    private String website;

    /**
     * 电子邮件
     */
    private String email;

    /**
     * 办公室
     */
    private String office;

    /**
     * 员工人数
     */
    private Integer employees;

    /**
     * 主要业务及产品
     */
    @Column(name = "main_business")
    private String mainBusiness;

    /**
     * 经营范围
     */
    @Column(name = "business_scope")
    private String businessScope;

    public FStockCompany(Long tid, String tsCode, String exchange, String chairman, String manager, String secretary, Float regCapital, String setupDate, String province, String city, String introduction, String website, String email, String office, Integer employees, String mainBusiness, String businessScope) {
        this.tid = tid;
        this.tsCode = tsCode;
        this.exchange = exchange;
        this.chairman = chairman;
        this.manager = manager;
        this.secretary = secretary;
        this.regCapital = regCapital;
        this.setupDate = setupDate;
        this.province = province;
        this.city = city;
        this.introduction = introduction;
        this.website = website;
        this.email = email;
        this.office = office;
        this.employees = employees;
        this.mainBusiness = mainBusiness;
        this.businessScope = businessScope;
    }

    public FStockCompany() {
        super();
    }

    /**
     * @return tid
     */
    public Long getTid() {
        return tid;
    }

    /**
     * @param tid
     */
    public void setTid(Long tid) {
        this.tid = tid;
    }

    /**
     * 获取股票代码
     *
     * @return ts_code - 股票代码
     */
    public String getTsCode() {
        return tsCode;
    }

    /**
     * 设置股票代码
     *
     * @param tsCode 股票代码
     */
    public void setTsCode(String tsCode) {
        this.tsCode = tsCode;
    }

    /**
     * 获取交易所代码 ，SSE上交所 SZSE深交所
     *
     * @return exchange - 交易所代码 ，SSE上交所 SZSE深交所
     */
    public String getExchange() {
        return exchange;
    }

    /**
     * 设置交易所代码 ，SSE上交所 SZSE深交所
     *
     * @param exchange 交易所代码 ，SSE上交所 SZSE深交所
     */
    public void setExchange(String exchange) {
        this.exchange = exchange;
    }

    /**
     * 获取法人代表
     *
     * @return chairman - 法人代表
     */
    public String getChairman() {
        return chairman;
    }

    /**
     * 设置法人代表
     *
     * @param chairman 法人代表
     */
    public void setChairman(String chairman) {
        this.chairman = chairman;
    }

    /**
     * 获取总经理
     *
     * @return manager - 总经理
     */
    public String getManager() {
        return manager;
    }

    /**
     * 设置总经理
     *
     * @param manager 总经理
     */
    public void setManager(String manager) {
        this.manager = manager;
    }

    /**
     * 获取董秘
     *
     * @return secretary - 董秘
     */
    public String getSecretary() {
        return secretary;
    }

    /**
     * 设置董秘
     *
     * @param secretary 董秘
     */
    public void setSecretary(String secretary) {
        this.secretary = secretary;
    }

    /**
     * 获取注册资本
     *
     * @return reg_capital - 注册资本
     */
    public Float getRegCapital() {
        return regCapital;
    }

    /**
     * 设置注册资本
     *
     * @param regCapital 注册资本
     */
    public void setRegCapital(Float regCapital) {
        this.regCapital = regCapital;
    }

    /**
     * 获取注册日期
     *
     * @return setup_date - 注册日期
     */
    public String getSetupDate() {
        return setupDate;
    }

    /**
     * 设置注册日期
     *
     * @param setupDate 注册日期
     */
    public void setSetupDate(String setupDate) {
        this.setupDate = setupDate;
    }

    /**
     * 获取所在省份
     *
     * @return province - 所在省份
     */
    public String getProvince() {
        return province;
    }

    /**
     * 设置所在省份
     *
     * @param province 所在省份
     */
    public void setProvince(String province) {
        this.province = province;
    }

    /**
     * 获取所在城市
     *
     * @return city - 所在城市
     */
    public String getCity() {
        return city;
    }

    /**
     * 设置所在城市
     *
     * @param city 所在城市
     */
    public void setCity(String city) {
        this.city = city;
    }

    /**
     * 获取公司介绍
     *
     * @return introduction - 公司介绍
     */
    public String getIntroduction() {
        return introduction;
    }

    /**
     * 设置公司介绍
     *
     * @param introduction 公司介绍
     */
    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    /**
     * 获取公司主页
     *
     * @return website - 公司主页
     */
    public String getWebsite() {
        return website;
    }

    /**
     * 设置公司主页
     *
     * @param website 公司主页
     */
    public void setWebsite(String website) {
        this.website = website;
    }

    /**
     * 获取电子邮件
     *
     * @return email - 电子邮件
     */
    public String getEmail() {
        return email;
    }

    /**
     * 设置电子邮件
     *
     * @param email 电子邮件
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * 获取办公室
     *
     * @return office - 办公室
     */
    public String getOffice() {
        return office;
    }

    /**
     * 设置办公室
     *
     * @param office 办公室
     */
    public void setOffice(String office) {
        this.office = office;
    }

    /**
     * 获取员工人数
     *
     * @return employees - 员工人数
     */
    public Integer getEmployees() {
        return employees;
    }

    /**
     * 设置员工人数
     *
     * @param employees 员工人数
     */
    public void setEmployees(Integer employees) {
        this.employees = employees;
    }

    /**
     * 获取主要业务及产品
     *
     * @return main_business - 主要业务及产品
     */
    public String getMainBusiness() {
        return mainBusiness;
    }

    /**
     * 设置主要业务及产品
     *
     * @param mainBusiness 主要业务及产品
     */
    public void setMainBusiness(String mainBusiness) {
        this.mainBusiness = mainBusiness;
    }

    /**
     * 获取经营范围
     *
     * @return business_scope - 经营范围
     */
    public String getBusinessScope() {
        return businessScope;
    }

    /**
     * 设置经营范围
     *
     * @param businessScope 经营范围
     */
    public void setBusinessScope(String businessScope) {
        this.businessScope = businessScope;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", tid=").append(tid);
        sb.append(", tsCode=").append(tsCode);
        sb.append(", exchange=").append(exchange);
        sb.append(", chairman=").append(chairman);
        sb.append(", manager=").append(manager);
        sb.append(", secretary=").append(secretary);
        sb.append(", regCapital=").append(regCapital);
        sb.append(", setupDate=").append(setupDate);
        sb.append(", province=").append(province);
        sb.append(", city=").append(city);
        sb.append(", introduction=").append(introduction);
        sb.append(", website=").append(website);
        sb.append(", email=").append(email);
        sb.append(", office=").append(office);
        sb.append(", employees=").append(employees);
        sb.append(", mainBusiness=").append(mainBusiness);
        sb.append(", businessScope=").append(businessScope);
        sb.append("]");
        return sb.toString();
    }
}